package com.jkdz.spyke.rs
{
	import com.jkgh.remedy.core.client.*;
	import flash.utils.ByteArray;

	public class SpykePaintListenerRemoter implements RemedyRemoter
	{
		private var mo:SpykePaintListener;

		public function SpykePaintListenerRemoter(mo:SpykePaintListener)
		{
			this.mo = mo;
		}

		public function call(methodID:int, connection:RemedyClientServerConnection, onReturn:Function):void
		{
			switch (methodID)
			{
			}
		}

		public function run(methodID:int, connection:RemedyClientServerConnection):void
		{
			switch (methodID)
			{
				case 47:
					var a_47:PaintSettings = (PaintSettings)(RemedyDOClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					mo.paintReset(a_47);
					break;
				case 46:
					var a_46:int = (int)(RemedyIntegerClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					var b_46:int = (int)(RemedyIntegerClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					var c_46:int = (int)(RemedyIntegerClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					var d_46:int = (int)(RemedyIntegerClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					mo.newLineDrawn(a_46, b_46, c_46, d_46);
					break;
				case 72:
					mo.unPublished();
					break;
			}
		}
	}
}
